package com.chouxiaozi.controller;

import com.chouxiaozi.service.IMessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class MessageSendController {

    @Autowired
    IMessageProvider messageProvider;

    @GetMapping("/sendMessage")
    public String sendMessage() {
        //发送消息
        return messageProvider.send();
    }
}
